#ifndef BOYAA_ENCRYPT_DECRYPT_H
#define BOYAA_ENCRYPT_DECRYPT_H

#include "PacketBase.h"

class CEncryptDecrypt
{
public:
	CEncryptDecrypt(void);
	~CEncryptDecrypt(void);

public:
	static WORD EncryptBuffer(CCPacketBase *pPacket);	// ��������
	static int  DecryptBuffer(CCPacketBase *pPacket);	// ��������

	static int EncryptBuffer1(CCPacketBase *pPacket);
	static int  DecryptBuffer1(CCPacketBase *pPacket);
private:
	static BYTE MapRecvByte(BYTE const cbData);
	static BYTE MapSendByte(BYTE const cbData);
private:
	static BYTE	m_SendByteMap[256];		//�ֽ�ӳ���
	static BYTE	m_RecvByteMap[256];		//�ֽ�ӳ���
};
#endif

